/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.guobo.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 授权卡Entity
 * @author wudavid
 * @version 2017-05-02
 */
public class GrantCard extends DataEntity<GrantCard> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 授权卡名称
	private String rfid;		// rfid编码
	private String status;      // 授权状态,0为不可用,1可用	
	
	
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public GrantCard() {
		super();
	}

	public GrantCard(String id){
		super(id);
	}

	@Length(min=0, max=64, message="授权卡名称长度必须介于 0 和 64 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=64, message="rfid编码长度必须介于 0 和 64 之间")
	public String getRfid() {
		return rfid;
	}

	public void setRfid(String rfid) {
		this.rfid = rfid;
	}
	
}